package com.ustb.springboot.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ustb.springboot.common.utils.R;
import com.ustb.springboot.controller.dto.UserDto;
import com.ustb.springboot.entity.UserEntity;

import javax.servlet.http.HttpServletRequest;

/**
 * @author pyn
 * @date 2022/5/6 - 21:20
 */
public interface UserService extends IService<UserEntity> {

    //用户注册接口
    R register(UserEntity userEntity);

    //登录接口
    //成功返回 token 失败返回 null
    R login(UserDto userDto);

    R getInfo(HttpServletRequest request);
;
    String queryUserNameWithUserId(String UserId);

    String queryNickNameWithUserId(String UserId);
}
